package hadoop.unit;

import org.apache.hadoop.conf.Configuration;

public class GlobalConfiguration {
    private static Configuration conf = null;
    public static Configuration getCon(){
        if (conf == null){
            conf = new Configuration();
            conf.set("fs.defaultFS","hdfs://master:1920");
//            conf.set("fs.defaultFS","hdfs://172.17.1.30:5010");
            conf.set("fs.hdfs.impl","org.apache.hadoop.hdfs.DistributedFileSystem");
        }
        return conf;
    }

}
